package com.ruijiang.service.UserService.impl;

import com.ruijiang.entity.Role;
import com.ruijiang.mapper.UserServiceMapper.RoleMapper;
import com.ruijiang.service.UserService.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    /**
     * 获取角色列表
     * @return
     */
    @Override
    public List<Role> getRoleList() {

        List<Role> list = roleMapper.getRoleList();

        return list;
    }



}
